<template>
  <div class="big">
    <div class="box">
      <h2>找回密码</h2>
      <el-form
        ref="ruleFormRef"
        :model="ruleForm"
        class="demo-ruleForm"
        :size="formSize"
        status-icon
        label-width="90px"
      >
        <el-form-item label="手机号" prop="phone">
          <el-input v-model="ruleForm.phone" />
        </el-form-item>
        <el-form-item
          style="
            display: flex;
            justify-content: space-between;
            align-items: center;
          "
          label="验证码"
          prop="code"
        >
          <el-input style="width: 165px" v-model="ruleForm.code" />
          <button class="but">4236</button>
        </el-form-item>
        <el-form-item label="新密码" prop="password">
          <el-input v-model="ruleForm.password" />
        </el-form-item>
        <el-form-item label="确认新密码" prop="TwoPassword">
          <el-input v-model="ruleForm.TwoPassword" />
        </el-form-item>
        <el-form-item>
          <button class="button">确认</button>
        </el-form-item>
      </el-form>
    </div>
  </div>
</template>

<script setup>
import { reactive, ref } from "vue";
import { useRouter, useRoute } from "vue-router";
const router = useRouter();
const route = useRoute();
const ruleForm = reactive({
  phone: "请输入手机号",
  code: "请输入验证码",
  password: "请输入新密码",
  TwoPassword: "请输入确认新密码",
});

</script>

<style lang="scss" scoped>
.big {
  width: 100vw;
  height: 100vh;
  background-color: #6a7e99;
  .box {
    width: 400px;
    height: 400px;
    background-color: #fff;
    margin: 0px auto;
    padding: 15px;
    h2 {
      color: #3bb19c;
      text-align: center;
      margin-bottom: 20px;
    }
    .button {
      background-color: #3bb19c;
      color: #fff;
      border-radius: 5px;
      width: 250px;
      height: 35px;
      line-height: 35px;
      border: 0;
    }
    .but {
      width: 100px;
      height: 33px;
      line-height: 33px;
      background-color: #fff;
      border: 1px solid #ccc;
      border-radius: 5px;
      margin-left: 15px;
      font-size: 18px;
      color: #ff6b06;
    }
  }
}
</style>
